
//巡线传感器引脚初始化
void grayscale_init(){
  for(int i=0;i<sensor_pin_number;i++){
    pinMode(grayscale_sensor_pin[i], INPUT);
  }
}

//获取并打印巡线传感器数值
void get_grayscale_data(){
  for(int i=0;i<sensor_pin_number;i++){
    grayscale_data[i] = digitalRead(grayscale_sensor_pin[i]);
    Serial.print(grayscale_sensor_pin[i]);Serial.print(":");
    Serial.print(grayscale_data[i]);Serial.print("  |  ");
  }
  Serial.println();
}